// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import Layout from "@/layout";

const userRouter = {
  path: "/user",
  component: Layout,
  redirect: "/user/index",
  name: "User",
  meta: {
    title: "用户",
    icon: "clipboard",
  },
  children: [
    {
      path: "index",
      component: () => import("@/views/user/list/index"),
      name: "UserIndex",
      meta: { title: "用户管理", icon: "" },
    },
    {
      path: "grade",
      component: () => import("@/views/user/grade/index"),
      name: "Grade",
      meta: { title: "用户等级", icon: "" },
    },
    {
      path: "label",
      component: () => import("@/views/user/group/index"),
      name: "Label",
      meta: { title: "用户标签", icon: "" },
    },
    {
      path: "group",
      component: () => import("@/views/user/group/index"),
      name: "Group",
      meta: { title: "用户分组", icon: "" },
    },
    {
      path: "trader",
      name: "trader",
      component: () => import("@/views/user/trader/index"),
      meta: {
        title: "训练账号",
      },
    },
    {
      path: "signal",
      name: "signal",
      component: () => import("@/views/user/signal/index"),
      meta: {
        title: "交易员信号",
      },
    },
    {
      path: "accountapply",
      name: "accountapply",
      component: () => import("@/views/user/accountapply/index"),
      meta: {
        title: "资管账户申请",
      },
    },
    {
      path: "blacklist",
      name: "blacklist",
      component: () => import("@/views/user/blacklist/index"),
      meta: {
        title: "黑名单管理",
      },
    },
  ],
};

export default userRouter;
